package com.amsp.oa.oademo.service;

import com.amsp.oa.oademo.entity.FileDestruction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface FileDestructionService extends IService<FileDestruction> {
    /**
     * 保存或更新文件销毁申请单（包含明细）
     */
    boolean saveOrUpdateWithDetails(FileDestruction fileDestruction);

    /**
     * 分页查询文件销毁申请单
     */
    IPage<FileDestruction> pageWithDetails(Long current, Long size, String keyword);

    /**
     * 获取文件销毁申请单详情
     */
    FileDestruction getWithDetails(Long id);
}